<?php


return [
    'officials' => [
        [
            'id'        => 'gh_76b88cfd4d79',
            'appid'     => 'wx9aae573ec9c2a3cf',
            'appsecret' => '6055cd8ec476a8510b51a933a85d9987',
            'message'   => [
                //  订阅消息 https://developers.weixin.qq.com/doc/offiaccount/Subscription_Messages/intro.html
                'subscribes' => [
                    [
                        'type'        => 'train_order_snap_expired',
                        'desc'        => '抢票过期通知',
                        'template_id' => 'pjxXUnAPVVL8zunMKiskHEG_B3M81TZ7lE1ODCtXYX0',
                        'data'        => [
                            'short_thing1' => [
                                'value' => 'description',//抢票结果
                            ],
                            'thing3'       => [
                                'value' => 'stations',//发到站
                            ],
                            'time4'        => [
                                'value' => 'depart_at', //出发时间  年月日 时分秒
                            ],
                            'thing5'       => [
                                'value' => 'remark', // 请到小程序内重新发起抢票任务
                            ],
                        ],
                    ],
                    [
                        'type'        => 'train_order_snap_success',
                        'desc'        => '抢票成功通知',
                        'template_id' => 'r_WA31WqW7x14Bv9E82FH-VKM0JTeQ4hQx1y7KMSov0',
                        'data'        => [
                            'thing1' => [
                                'value' => 'description',//抢票结果
                            ],
                            'thing4' => [
                                'value' => 'train_code',//车次
                            ],
                            'thing7' => [
                                'value' => 'stations',//发到站
                            ],
                            'date3'  => [
                                'value' => 'depart_at', //出发时间  年月日 时分秒
                            ],
                            'thing8' => [
                                'value' => 'remark', // 抢票成功，请登录小程序查看详情
                            ],
                        ],
                    ],
                ],
                'templates'  => [
                    [
                        'type'        => 'train_order_ticketed',
                        'desc'        => '火车票购票成功通知',
                        'template_id' => 'davVYTwhmIY9rxbCxWy1raGlPy3fO0-SqkzuH24ySDY',
                        'data'        => [
                            'first'    => [
                                'value' => 'description',//您好，你预订的火车票购票成功。
                            ],
                            'keyword1' => [
                                'value' => 'ticket_num',
                            ],
                            'keyword2' => [
                                'value' => 'depart_at',// 月日时分
                            ],
                            'keyword3' => [
                                'value' => 'train_info',
                            ],
                            'keyword4' => [
                                'value' => 'seat_no',
                            ],
                            'keyword5' => [
                                'value' => 'checking_port', // 检票口
                            ],
                            'remark'   => [
                                'value' => 'remark', // 无纸质车票，请持身份证原件通过自助闸机
                            ],
                        ],
                    ],
                    [
                        'type'        => 'train_order_ticket_failed',
                        'desc'        => '火车票购票失败通知',
                        'template_id' => 'TgxS3EHVikEfG4_HEXBPecf7NO90HDz6pyOapAqCBWU',
                        'data'        => [
                            'first'    => [
                                'value' => 'description',//您好，您申请的火车票改签失败
                            ],
                            'keyword1' => [
                                'value' => 'order_sn',
                            ],
                            'keyword2' => [
                                'value' => 'passenger_names',
                            ],
                            'keyword3' => [
                                'value' => 'depart_at', // 月日
                            ],
                            'keyword4' => [
                                'value' => 'train_code',
                            ],
                            'keyword5' => [
                                'value' => 'seat_type', // 坐席
                            ],
                            'remark'   => [
                                'value' => 'remark', // 请登录app中查看详情，给您带来的不便请谅解。
                            ],
                        ],
                    ],
                    [
                        'type'        => 'train_order_change_failed',
                        'desc'        => '火车票改签失败通知',
                        'template_id' => '0H8IK3s6R0QGXEDD0WdhsKV8_6D9mcAnrEKSbBQRejo',
                        'data'        => [
                            'first'    => [
                                'value' => 'description',//您好，您申请的火车票改签失败
                            ],
                            'keyword1' => [
                                'value' => 'order_sn',
                            ],
                            'keyword2' => [
                                'value' => 'passenger_names',
                            ],
                            'keyword3' => [
                                'value' => 'depart_at', // 月日
                            ],
                            'keyword4' => [
                                'value' => 'train_code',
                            ],
                            'keyword5' => [
                                'value' => 'seat_type', // 坐席
                            ],
                            'remark'   => [
                                'value' => 'remark', // 请登录app中查看详情，给您带来的不便请谅解。
                            ],
                        ],
                    ],
                    [
                        'type'        => 'train_order_snap_success',
                        'desc'        => '抢票成功通知',
                        'template_id' => 'GD8V_piVgBwU578-G42e6eQgqc2x59h5i-kkGa9klz8',
                        'data'        => [
                            'first'    => [
                                'value' => 'description',//尊敬的用户，2017年7月11日武汉-北京的车票抢票成功啦！
                            ],
                            'keyword1' => [
                                'value' => 'ticket_number',// 车票
                            ],
                            'keyword2' => [
                                'value' => 'train_code', // 仅车次号
                            ],
                            'keyword3' => [
                                'value' => 'stations', // 发到站
                            ],
                            'keyword4' => [
                                'value' => 'seat_name',//坐席
                            ],
                            'keyword5' => [
                                'value' => 'depart_at', // 发车时间  年月日 时分
                            ],
                            'remark'   => [
                                'value' => 'remark', // 高铁管家提醒您，仔细检查车票信息，如需退票/改签，请登录小程序操作。
                            ],
                        ],
                    ],
                    [
                        'type'        => 'train_order_snap_failed',
                        'desc'        => '抢票失败通知',
                        'template_id' => 'qHNKmXvwQhzXzYNgV7MInVrH7HFoNgrWjHMVUI10dTc',
                        'data'        => [
                            'first'    => [
                                'value' => 'description',//很抱歉通知您，您的抢票订单未抢票成功。
                            ],
                            'keyword1' => [
                                'value' => 'train_code',//车次
                            ],
                            'keyword2' => [
                                'value' => 'stations',//行程 站点
                            ],
                            'keyword3' => [
                                'value' => 'depart_at', // 年月日
                            ],
                            'keyword4' => [
                                'value' => 'failed_reason', // 失败原因
                            ],
                            'remark'   => [
                                'value' => 'remark', //您可选择购买其他车次车票，保障您的出行。
                            ],
                        ],
                    ],
                ],
            ],
        ],
    ],
    'works'     => [],
    'miniapp'   => [
        'appid'     => 'wx9aae573ec9c2a3cf',
        'appsecret' => '6055cd8ec476a8510b51a933a85d9987',
        'message'   => [
            'subscribes' => [
                [
                    'type'        => 'train_order_ticketed',
                    'desc'        => '火车票出票结果通知',
                    'template_id' => '_2nmGjuKR2DzdK56z29VX_HeBuddXJQfPy71HUlW-Gg',
                    'data'        => [
                        'character_string2' => [
                            'value' => 'ticket_number',
                        ],
                        'date5'             => [
                            'value' => 'train_date',
                        ],
                        'thing4'            => [
                            'value' => 'stations',
                        ],
                        'name7'             => [
                            'value' => 'passenger_names',
                        ],
                        'phrase1'           => [
                            'value' => 'ticket_result',
                        ],
                    ],
                ],
                [
                    'type'        => 'train_order_change',
                    'desc'        => '火车票改签结果通知',
                    'template_id' => 'WZ5_VaDf66twiaKttkkdsICgTkPcN3ciiXcSfLqU1B8',
                    'data'        => [
                        'character_string2' => [
                            'value' => 'order_sn',
                        ],
                        'date7'             => [
                            'value' => 'train_date',
                        ],
                        'thing6'            => [
                            'value' => 'stations',
                        ],
                        'name4'             => [
                            'value' => 'passenger_names',
                        ],
                        'phrase1'           => [
                            'value' => 'change_result',
                        ],
                    ],
                ],
                [
                    'type'        => 'train_order_refund',
                    'desc'        => '火车票退票结果通知',
                    'template_id' => 'sjoY7wCFojNGlpYJ-b6bTtIM0ArAuUIEmJKx4lGqgFE',
                    'data'        => [
                        'character_string2' => [
                            'value' => 'order_sn',
                        ],
                        'date5'             => [
                            'value' => 'train_date',
                        ],
                        'thing7'            => [
                            'value' => 'stations',
                        ],
                        'name4'             => [
                            'value' => 'passenger_names',
                        ],
                        'phrase1'           => [
                            'value' => 'refund_result',
                        ],
                    ],

                ],
                [
                    'type'        => 'train_order_snap_expired',
                    'desc'        => '抢票过期通知',
                    'template_id' => 'k9Vfs1fYlw5_WFndN2q7mkd7cBu2QVNg3EHGBf9GHFU',
                    'data'        => [
                        'short_thing1'      => [
                            'value' => 'description',//抢票结果
                        ],
                        'character_string2' => [
                            'value' => 'train_code',//车次 仅code
                        ],
                        'thing3'            => [
                            'value' => 'stations',//发到站
                        ],
                        'time4'             => [
                            'value' => 'depart_at', //出发时间  年月日 时分秒
                        ],
                    ],
                ],
                [
                    'type'        => 'train_order_snap_failed',
                    'desc'        => '抢票失败通知',
                    'template_id' => '4v9pgbOCEgkBDEAp4a44nORAxLQcGDS9UN5A8IoEuwc',
                    'data'        => [
                        'short_thing1' => [
                            'value' => 'description',//抢票结果
                        ],
                        'thing3'       => [
                            'value' => 'stations',//发到站
                        ],
                        'time4'        => [
                            'value' => 'depart_at', //出发时间  年月日 时分秒
                        ],
                        'thing5'       => [
                            'value' => 'remark', //备 请仔细检查车票信息，详情到小程序内查看。
                        ],
                    ],
                ],
                [
                    'type'        => 'train_order_snap_confirm',
                    'desc'        => '确认出票通知',
                    'template_id' => 'gyFVGy-KxQPy0C4uFUa5rTvYjRYC6eY3vNBEZdWkRAE',
                    'data'        => [
                        'thing4' => [
                            'value' => 'train_code',//车次 车次code 出发 目的
                        ],
                        'thing7' => [
                            'value' => 'stations',//发到站
                        ],
                        'date3'  => [
                            'value' => 'depart_at', //出发时间  年月日 时分秒
                        ],
                        'thing8' => [
                            'value' => 'remark', //备 抢票成功，请登录小程序查看详情
                        ],
                    ],
                ],
                [
                    'type'        => 'train_order_snap_success',
                    'desc'        => '抢票成功通知',
                    'template_id' => 'gyFVGy-KxQPy0C4uFUa5rVPlLv4ysn5PElg4QueyBHE',
                    'data'        => [
                        'thing1' => [
                            'value' => 'description',//抢票结果
                        ],
                        'thing4' => [
                            'value' => 'train_code',//车次 车次code 出发 目的
                        ],
                        'thing7' => [
                            'value' => 'stations',//发到站
                        ],
                        'date3'  => [
                            'value' => 'depart_at', //出发时间  年月日 时分秒
                        ],
                        'thing8' => [
                            'value' => 'remark', //备 抢票成功，请登录小程序查看详情
                        ],
                    ],
                ],
            ],
        ],
    ],
];